OrderedMultiDictionary<(Of <TKey, TValue>)> Members |
See Also Methods Properties Constructors Explicit Interface Implementations |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public class OrderedMultiDictionary<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class OrderedMultiDictionary(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] generic<typename TKey, typename TValue> public ref class OrderedMultiDictionary |
Type Parameters
- TKey
- TValue
The type exposes the following members.
Public Constructors
Name | Description | |
---|---|---|
OrderedMultiDictionary<(Of <TKey, TValue>)>OrderedMultiDictionary<(Of <TKey, TValue>)>New | Overloaded. |
Public Methods
Name | Description | |
---|---|---|
Add | Overloaded. | |
AddMany | Adds new values to be associated with a key. If duplicate values are permitted, this method always adds new key-value pairs to the dictionary. If duplicate values are not permitted, and key already has a value equal to one of values associated with it, then that value is replaced, and the number of values associate with key is unchanged. | |
AsReadOnly |
Provides a read-only view of this collection. The returned ICollection<T> provides
a view of the collection that prevents modifications to the collection. Use the method to provide
access to the collection without allowing changes. Since the returned object is just a view,
changes to the collection will be reflected in the view.
(Inherited from CollectionBase<(Of <T>)>.) | |
Clear |
Removes all keys and values from the dictionary.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::Clear()().) | |
Clone |
Makes a shallow clone of this dictionary; i.e., if keys or values of the
dictionary are reference types, then they are not cloned. If TKey or TValue is a value type,
then each element is copied as if by simple assignment.
| |
CloneContents |
Makes a deep clone of this dictionary. A new dictionary is created with a clone of
each entry of this dictionary, by calling ICloneable.Clone on each element. If TKey or TValue is
a value type, then each element is copied as if by simple assignment.
| |
Contains | Overloaded. | |
ContainsKey |
Checks to see if the key is present in the dictionary and has
at least one value associated with it.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::ContainsKey(TKey).) | |
ConvertAll<(Of <TOutput>)> |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
(Inherited from CollectionBase<(Of <T>)>.) | |
CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.) | |
CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | |
Equals | (Inherited from Object.) | |
Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | |
FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | |
ForEach |
Performs the specified action on each item in this collection.
(Inherited from CollectionBase<(Of <T>)>.) | |
GetEnumerator |
Enumerate all the keys in the dictionary, and for each key, the collection of values for that key.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Range |
Returns a collection that can be used for enumerating some of the keys and values in the collection.
Only keys that are greater than from and
less than to are included. The keys are enumerated in sorted order.
Keys equal to the end points of the range can be included or excluded depending on the
fromInclusive and toInclusive parameters.
| |
RangeFrom |
Returns a collection that can be used for enumerating some of the keys and values in the collection.
Only keys that are greater than (and optionally, equal to) from are included.
The keys are enumerated in sorted order. Keys equal to from can be included
or excluded depending on the fromInclusive parameter.
| |
RangeTo |
Returns a collection that can be used for enumerating some of the keys and values in the collection.
Only items that are less than (and optionally, equal to) to are included.
The items are enumerated in sorted order. Items equal to to can be included
or excluded depending on the toInclusive parameter.
| |
Remove | Overloaded. | |
RemoveAll |
Removes all the items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | |
RemoveMany | Overloaded. | |
Replace |
Replaces all values associated with key with the single value value.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
ReplaceMany |
Replaces all values associated with key with a new collection
of values. If the collection does not permit duplicate values, and values has duplicate
items, then only the last of duplicates is added.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
Reversed |
Returns a View collection that can be used for enumerating the keys and values in the collection in
reversed order.
| |
ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
(Inherited from CollectionBase<(Of <T>)>.) | |
ToString |
Shows the string representation of the dictionary. The string representation contains
a list of the mappings in the dictionary.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
Protected Methods
Name | Description | |
---|---|---|
CountAllValues |
Gets a total count of values in the collection.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::CountAllValues()().) | |
CountValues |
Gets the number of values associated with a given key.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::CountValues(TKey).) | |
EnumerateKeys |
Enumerate all of the keys in the dictionary.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::EnumerateKeys()().) | |
EqualValues |
Determine if two values are equal.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::EqualValues(TValue, TValue).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
TryEnumerateValuesForKey |
Determines if this dictionary contains a key equal to key. If so, all the values
associated with that key are returned through the values parameter.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::TryEnumerateValuesForKey(TKey, IEnumerator<(Of <TValue>)>%).) |
Public Properties
Name | Description | |
---|---|---|
Count |
Gets the number of key-value pairs in the dictionary. Each value associated
with a given key is counted. If duplicate values are permitted, each duplicate
value is included in the count.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::Count.) | |
Item |
Returns a collection of all of the values in the dictionary associated with key,
or changes the set of values associated with key.
If the key is not present in the dictionary, an ICollection enumerating no
values is returned. The returned collection of values is read-write, and can be used to
modify the collection of values associated with the key.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
KeyComparer |
Returns the IComparer<T> used to compare keys in this dictionary.
| |
Keys |
Gets a read-only collection all the keys in this dictionary.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
KeyValuePairs |
Gets a read-only collection of all key-value pairs in the dictionary. If a key has multiple
values associated with it, then a key-value pair is present for each value associated
with the key.
(Overrides MultiDictionaryBase<(Of <TKey, TValue>)>..::KeyValuePairs.) | |
ValueComparer |
Returns the IComparer<T> used to compare values in this dictionary.
| |
Values |
Gets a read-only collection of all the values in the dictionary.
(Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection<(Of <T>)>..::IsReadOnly | (Inherited from CollectionBase<(Of <T>)>.) | |
IDictionary<(Of <TKey, ICollection<(Of <TValue>)>>)>..::Add | (Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
IDictionary<(Of <TKey, ICollection<(Of <TValue>)>>)>..::Item | (Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
IDictionary<(Of <TKey, ICollection<(Of <TValue>)>>)>..::TryGetValue | (Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
IDictionary<(Of <TKey, ICollection<(Of <TValue>)>>)>..::Values | (Inherited from MultiDictionaryBase<(Of <TKey, TValue>)>.) | |
ICollection..::CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.) | |
ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.) | |
ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.) | |
IEnumerable..::GetEnumerator |
Provides an IEnumerator that can be used to iterate all the members of the
collection. This implementation uses the IEnumerator<T> that was overridden
by the derived classes to enumerate the members of the collection.
(Inherited from CollectionBase<(Of <T>)>.) | |
ICloneable..::Clone |
Implements ICloneable.Clone. Makes a shallow clone of this dictionary; i.e., if keys or values are reference types, then they are not cloned.
|